home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / accessibility / nsIAccessibleTreeCache.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  105 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIAccessibleTreeCache.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIAccessibleTreeCache_h__
  6. #define __gen_nsIAccessibleTreeCache_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsITreeColumns_h__
  14. #include "nsITreeColumns.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21. class nsIAccessible; /* forward declaration */
  22.  
  23.  
  24. /* starting interface:    nsIAccessibleTreeCache */
  25. #define NS_IACCESSIBLETREECACHE_IID_STR "cc742da2-9c25-4d04-96cd-da407d676c6d"
  26.  
  27. #define NS_IACCESSIBLETREECACHE_IID \
  28.   {0xcc742da2, 0x9c25, 0x4d04, \
  29.     { 0x96, 0xcd, 0xda, 0x40, 0x7d, 0x67, 0x6c, 0x6d }}
  30.  
  31. /**
  32.  * A cross-platform interface that supports cache for tree item 
  33.  *
  34.  * @status UNDER_REVIEW
  35.  */
  36. class NS_NO_VTABLE nsIAccessibleTreeCache : public nsISupports {
  37.  public: 
  38.  
  39.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IACCESSIBLETREECACHE_IID)
  40.  
  41.   /**
  42.    * Get tree item from cache according to row and column, create if doesn't exist in cache
  43.    * "aColumn" can be nsnull
  44.    */
  45.   /* [noscript] nsIAccessible getCachedTreeitemAccessible (in PRInt32 aRow, in nsITreeColumn aColumn); */
  46.   NS_IMETHOD GetCachedTreeitemAccessible(PRInt32 aRow, nsITreeColumn *aColumn, nsIAccessible **_retval) = 0;
  47.  
  48. };
  49.  
  50. /* Use this macro when declaring classes that implement this interface. */
  51. #define NS_DECL_NSIACCESSIBLETREECACHE \
  52.   NS_IMETHOD GetCachedTreeitemAccessible(PRInt32 aRow, nsITreeColumn *aColumn, nsIAccessible **_retval); 
  53.  
  54. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  55. #define NS_FORWARD_NSIACCESSIBLETREECACHE(_to) \
  56.   NS_IMETHOD GetCachedTreeitemAccessible(PRInt32 aRow, nsITreeColumn *aColumn, nsIAccessible **_retval) { return _to GetCachedTreeitemAccessible(aRow, aColumn, _retval); } 
  57.  
  58. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  59. #define NS_FORWARD_SAFE_NSIACCESSIBLETREECACHE(_to) \
  60.   NS_IMETHOD GetCachedTreeitemAccessible(PRInt32 aRow, nsITreeColumn *aColumn, nsIAccessible **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCachedTreeitemAccessible(aRow, aColumn, _retval); } 
  61.  
  62. #if 0
  63. /* Use the code below as a template for the implementation class for this interface. */
  64.  
  65. /* Header file */
  66. class nsAccessibleTreeCache : public nsIAccessibleTreeCache
  67. {
  68. public:
  69.   NS_DECL_ISUPPORTS
  70.   NS_DECL_NSIACCESSIBLETREECACHE
  71.  
  72.   nsAccessibleTreeCache();
  73.  
  74. private:
  75.   ~nsAccessibleTreeCache();
  76.  
  77. protected:
  78.   /* additional members */
  79. };
  80.  
  81. /* Implementation file */
  82. NS_IMPL_ISUPPORTS1(nsAccessibleTreeCache, nsIAccessibleTreeCache)
  83.  
  84. nsAccessibleTreeCache::nsAccessibleTreeCache()
  85. {
  86.   /* member initializers and constructor code */
  87. }
  88.  
  89. nsAccessibleTreeCache::~nsAccessibleTreeCache()
  90. {
  91.   /* destructor code */
  92. }
  93.  
  94. /* [noscript] nsIAccessible getCachedTreeitemAccessible (in PRInt32 aRow, in nsITreeColumn aColumn); */
  95. NS_IMETHODIMP nsAccessibleTreeCache::GetCachedTreeitemAccessible(PRInt32 aRow, nsITreeColumn *aColumn, nsIAccessible **_retval)
  96. {
  97.     return NS_ERROR_NOT_IMPLEMENTED;
  98. }
  99.  
  100. /* End of implementation class template. */
  101. #endif
  102.  
  103.  
  104. #endif /* __gen_nsIAccessibleTreeCache_h__ */
  105.